package com.swak.job;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 任务分片
 * 
 * @author DELL
 */
@Getter
@Setter
@Accessors(chain = true)
public class JobFragment {

	/**
	 * 任务
	 */
	private final Job job;

	/**
	 * 分配的配置
	 */
	private final String config;

	/**
	 * 任务
	 */
	private final JobTask task;

	public JobFragment(Job job, JobTask task) {
		this.job = job;
		this.task = task;
		this.config = this.task.getConfig();
	}
}
